<template>
<div>
  <div style="margin: 20px 0 0 20px">
    <el-button @click="btnJgpzy">机构配置页</el-button>
    <el-button @click="btnJgpzyn">机构配置新款</el-button>
    <el-button @click="btnJgpzy3">机构配置3版</el-button>
    <el-button @click="btnRypzy">人员配置页</el-button>
    <el-button @click="btnRypzyn">人员配置新款</el-button>
    <el-button @click="btnRypzy3">人员配置3版</el-button>
    <el-button @click="btnDxb">定向表</el-button>
  </div>
  <!-- 机构配置页 -->
  <form-jgpzy v-if="jgpzyVisible" ref="jgpzy"></form-jgpzy>
  <!-- 人员配置页 -->
  <form-rypzy v-if="rypzyVisible" ref="rypzy"></form-rypzy>
  <!--机构配置新款-->
  <form-jgpzyn v-if="jgpzyNVisible" ref="jgpzyn"></form-jgpzyn>
  <!--机构配置3版-->
  <form-jgpzy3 v-if="jgpzy3Visible" ref="jgpzy3"></form-jgpzy3>
  <!--人员配置新款-->
  <form-rypzyn v-if="rypzyNVisible" ref="rypzyn"></form-rypzyn>
  <!--人员配置3-->
  <form-rypzy3 v-if="rypzy3Visible" ref="rypzy3"></form-rypzy3>
</div>
</template>

<script>
import formJgpzy from './jiangjinjgpzy'
import formJgpzyn from './jiangjinjgpzyn'
import formJgpzy3 from './jiangjinjgpzy3'

import formRypzy from './jiangjinrypzy'
import formRypzyn from './jiangjinrypzyn'
import formRypzy3 from './jiangjinrypzy3'


export default {
  components: {
    formJgpzy,
    formRypzy,
    formJgpzyn,
    formRypzyn,
    formJgpzy3,
    formRypzy3
  },
  data(){
    return{
      jgpzyVisible:false,
      jgpzyNVisible:false,
      jgpzy3Visible:false,

      rypzyVisible:false,
      rypzyNVisible:false,
      rypzy3Visible:false
    }
  },
  methods:{
    btnJgpzy(){
      this.jgpzyVisible = true
      this.$nextTick(() => {
        this.$refs.jgpzy.init()
      })
    },
    btnRypzy(){
      this.rypzyVisible = true
      this.$nextTick(() => {
        this.$refs.rypzy.init()
      })
    },
    btnJgpzyn(){
      this.jgpzyNVisible = true;
      this.$nextTick(()=>{
        this.$refs.jgpzyn.init();
      })
    },
    btnJgpzy3(){
      this.jgpzy3Visible = true;
      this.$nextTick(()=>{
        this.$refs.jgpzy3.init();
      })
    },

    btnRypzyn(){
      this.rypzyNVisible = true
      this.$nextTick(() => {
        this.$refs.rypzyn.init()
      })
    },
    btnRypzy3(){
      this.rypzy3Visible = true
      this.$nextTick(() => {
        this.$refs.rypzy3.init()
      })
    },
    btnDxb(){
// /jiangjin/jiangjinfpjjfpgrdxb/index
    }
  }
}
</script>

<style scoped>

</style>
